package gdut.edu.demo02;

/**
 * @Description 队列测试
 * @Author JiaFu
 * @Date 2022/7/6 16:36
 */
public class TestMyQueue {
    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue();
//        System.out.println(myQueue.poll());
        myQueue.add(1);
        myQueue.add(2);
        myQueue.add(3);
        myQueue.add(4);
        System.out.println("myQueue.poll() = " + myQueue.poll());
        System.out.println("myQueue.poll() = " + myQueue.poll());
        System.out.println("myQueue.poll() = " + myQueue.poll());
        System.out.println("myQueue.isEmpty() = " + myQueue.isEmpty());
        System.out.println("myQueue.poll() = " + myQueue.poll());
        System.out.println("myQueue.isEmpty() = " + myQueue.isEmpty());
    }
}
